//
//  ScoreShowImage.m
//  BCVersion
//
//  Created by 吴 崧 on 14-3-2.
//  Copyright (c) 2014年 Jungle. All rights reserved.
//

#import "ScoreShowImage.h"

@implementation ScoreShowImage

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}


-(void)setScore:(float)score
          Large:(BOOL)large
{
    self.image = nil;
    float doScore = 2 * score;
    NSString *formatString = large?@"large%d":@"%d";

    NSString *scoreImageName = [[NSString alloc]initWithFormat:formatString,(int)doScore];
    [self setImage:[UIImage imageNamed:scoreImageName]];
    //scoreImageName = nil;
}


@end
